﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace FastCodeGeneration.Entity
{
    public class Project
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]//数据库是自增才配自增 
        public int? Id { get; set; }

        /// <summary>
        /// 项目名
        /// </summary>
        [SugarColumn(ColumnName = "name")]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 公司
        /// </summary>
        [SugarColumn(ColumnName = "company")]
        public string Company { set; get; }=string.Empty;


        /// <summary>
        /// 数据库类型
        /// </summary>
        [SugarColumn(ColumnName = "data_base_type")]
        public string DataBaseType { get; set; } = string.Empty;

        /// <summary>
        /// 数据库
        /// </summary>
        [SugarColumn(ColumnName = "data_base_name")]
        public string DataBaseName { get; set; } = string.Empty;

        /// <summary>
        /// 数据库服务器IP
        /// </summary>
        [SugarColumn(ColumnName = "ip")]
        public string Ip { set; get; } = string.Empty;

        /// <summary>
        /// 数据库服务器IP
        /// </summary>
        [SugarColumn(ColumnName = "port")]
        public uint Port { set; get; }

        /// <summary>
        /// 数据库用户名
        /// </summary>
        [SugarColumn(ColumnName = "user_name")]//数据库是自增才配自增 
        public string UserName { set; get; } = string.Empty;

        /// <summary>
        /// 数据库密码
        /// </summary>
        [SugarColumn(ColumnName = "password")]
        public string Password { set; get; } = string.Empty;

        /// <summary>
        /// 后端模板类型 JAVA || CSharp
        /// </summary>
        [SugarColumn(ColumnName = "server_template")]
        public string ServerTemplate { set; get; } = string.Empty;

        /// <summary>
        /// 前端模板类型 VUE || React
        /// </summary>
        [SugarColumn(ColumnName = "view_template")]
        public string ViewTemplate { set; get; } = string.Empty;

        /// <summary>
        /// 项目路径
        /// </summary>
        [SugarColumn(ColumnName = "project_path")]
        public string ProjectPath { set; get; } = string.Empty;


        /// <summary>
        /// 前端项目路径
        /// </summary>
        [SugarColumn(ColumnName = "view_project_path")]
        public string ViewProjectPath { set; get; } = string.Empty;


        /// <summary>
        /// 项目路径
        /// </summary>
        [SugarColumn(ColumnName = "author")]
        public string Author { set; get; } = string.Empty;


        /// <summary>
        /// 项目路径
        /// </summary>
        [SugarColumn(ColumnName = "date_format")]
        public string DateFormat { set; get; } = string.Empty;

    }
}
